﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ADC.BL;

namespace ADC.Web
{
    public partial class ContactUs : System.Web.UI.Page
    {
        log4net.ILog logger = log4net.LogManager.GetLogger("ContactUs");
        protected void Page_Load(object sender, EventArgs e)
        {
            Page.Title = "Lien he Dien Lanh ADC";
            InitData();
        }


        private void InitData()
        {
            //var ID = Request.Params["ID"];
            //if (ID == null) return;
            var ID = 2; //lay ban ghi ContactUs

            try
            {
                // Get About by ID
                var aboutUs = AboutUsFactory.GetByID(Convert.ToInt32(ID));
                if (aboutUs == null) return;
                lblContactUs.Text = aboutUs.Description;
            }
            catch (Exception ex)
            {
                logger.Error(ex.ToString());
                if (GlobalInfo.IsEnableDebugMode) throw;
            }
        }
    }
}